{* news *}

<table width=100%>

<form action="index.php" name="subscription_form" method=post>

	{section name=i loop=$news_array}
	<tr>
		<td>
			<b>{$news_array[i].add_date}</b>
		</td>
	</tr>
	<tr>
		<td>
			<font class="standard">{$news_array[i].title}</font>
			<br><br>
		</td>
	</tr>
	{/section}


	{if $news_array}
	<tr>
		<td>
			<a href='index.php?news=yes'>
				<b>
					{$smarty.const.STRING_ALL_NEWS}...
				</b>
			</a>
		</td>
	</tr>
	{/if}

	<tr>
		<td align=center>

		{if $subscribe == NULL} {* show newsletter subscription form *}

			{if $error_message}
				<font color="red"><b>{$error_message}</b></font>
			{/if}

			<p>
			<font class=light>{$smarty.const.CUSTOMER_SUBSCRIBE_FOR_NEWS}:</font>
			<br>
			<input type=text name=email value="{$email_to_subscribe|replace:'"':'&quot;'|replace:"\'":"'"|replace:"<":"&lt;"|replace:">":"&gt;"|default:""}" class=ss size=15><br>
			<input type=submit value="{$smarty.const.OK_BUTTON}">
			<input type=hidden name=subscribe value="yes">

			{if $productID ne NULL} 
				<input type=hidden name=productID value="{$productID}"> 
			{/if}
			
			{if $categoryID ne NULL} 
				<input type=hidden name=categoryID value="{$categoryID}"> 
			{/if}

		{else} {* show 'thank you' message *}

			<font class=light>{$smarty.const.STRING_THANK_YOU}</font>

		{/if}
		</td>
	</tr>

</form>

</table>